package com.ihrm.modules.sys.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ihrm.modules.sys.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author gaogzhen
 * @email gaogzhen@foxmail.com
 * @date 2020-12-17 20:11:23
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {
    IPage<UserEntity> queryPage(IPage<UserEntity> page, @Param("companyId")String companyId, @Param("departmentId")String departmentId);

    int assignRoles(Map<String, Object> map);

    int deleteRolesByUserId(String id);
}
